<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>支付成功 - 甜品店堂食点餐系统</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://unpkg.com/tdesign-mobile-vue/dist/tdesign.min.css" />
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            background-color: #f0f2f5;
            height: 100vh;
            margin: 0;
            padding: 0;
        }
        .success-animation {
            animation: scale-up 0.5s ease-out;
        }
        @keyframes scale-up {
            0% {
                transform: scale(0.5);
                opacity: 0;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }
        .ticket-number {
            font-size: 4rem;
            font-weight: 700;
            color: #FF4081;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            letter-spacing: 2px;
        }
        .countdown {
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0.7;
            }
            100% {
                opacity: 1;
            }
        }
    </style>
</head>
<body>
    <div class="flex flex-col h-full">
        <!-- 顶部导航栏 -->
        <div class="bg-white px-4 py-3 flex items-center justify-between shadow-sm">
            <h1 class="text-lg font-medium">支付成功</h1>
            <a href="menu.html" class="text-pink-500 text-sm font-medium">继续点餐</a>
        </div>

        <!-- 成功内容 -->
        <div class="flex-1 overflow-y-auto">
            <!-- 成功提示 -->
            <div class="bg-gradient-to-b from-pink-500 to-purple-500 text-white p-6 text-center">
                <div class="success-animation mb-4">
                    <svg class="w-16 h-16 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                    </svg>
                </div>
                <h2 class="text-xl font-bold mb-2">支付成功</h2>
                <p class="text-white text-opacity-80 mb-4">您的订单已提交至后厨</p>
                
                <div class="bg-white bg-opacity-20 rounded-xl p-4 mb-4">
                    <p class="text-sm mb-2">您的取单号</p>
                    <div class="ticket-number">038</div>
                    <p class="text-sm mt-2">请凭此号码取餐</p>
                </div>
                
                <div class="flex justify-between items-center bg-white bg-opacity-20 rounded-xl p-4">
                    <div class="text-left">
                        <p class="text-sm">预计等待时间</p>
                        <p class="text-xl font-bold mt-1">15分钟</p>
                    </div>
                    <div class="countdown bg-white text-pink-500 rounded-full px-4 py-2 font-bold">
                        14:45可取餐
                    </div>
                </div>
            </div>

            <!-- 订单详情 -->
            <div class="p-4 space-y-4">
                <!-- 订单信息 -->
                <div class="bg-white rounded-xl shadow-sm overflow-hidden p-4">
                    <div class="flex items-center justify-between mb-3">
                        <h3 class="font-medium text-gray-800">订单信息</h3>
                        <a href="order-detail.html" class="text-pink-500 text-sm">查看详情</a>
                    </div>
                    
                    <div class="space-y-2 text-sm">
                        <div class="flex">
                            <span class="text-gray-500 w-20">订单号</span>
                            <span class="text-gray-800 flex-1">20230806A5X9P2</span>
                        </div>
                        <div class="flex">
                            <span class="text-gray-500 w-20">桌号</span>
                            <span class="text-gray-800 flex-1">A03</span>
                        </div>
                        <div class="flex">
                            <span class="text-gray-500 w-20">下单时间</span>
                            <span class="text-gray-800 flex-1">2023-08-06 14:30</span>
                        </div>
                        <div class="flex">
                            <span class="text-gray-500 w-20">支付金额</span>
                            <span class="text-pink-600 font-bold flex-1">¥98.00</span>
                        </div>
                    </div>
                </div>

                <!-- 商品列表 -->
                <div class="bg-white rounded-xl shadow-sm overflow-hidden p-4">
                    <h3 class="font-medium text-gray-800 mb-3">商品列表</h3>
                    
                    <!-- 商品项目 1 -->
                    <div class="flex items-center justify-between py-2 border-b border-gray-100">
                        <div class="flex items-center">
                            <div class="w-10 h-10 rounded-lg overflow-hidden flex-shrink-0">
                                <img src="https://images.unsplash.com/photo-1587314168485-3236d6710814?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="提拉米苏" class="w-full h-full object-cover">
                            </div>
                            <div class="ml-3">
                                <h4 class="text-sm font-medium text-gray-800">经典提拉米苏</h4>
                                <p class="text-xs text-gray-500">¥42.00 × 1</p>
                            </div>
                        </div>
                        <div class="text-gray-800 font-medium">¥42.00</div>
                    </div>
                    
                    <!-- 商品项目 2 -->
                    <div class="flex items-center justify-between py-2">
                        <div class="flex items-center">
                            <div class="w-10 h-10 rounded-lg overflow-hidden flex-shrink-0">
                                <img src="https://images.unsplash.com/photo-1501443762994-82bd5dace89a?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="芒果冰沙" class="w-full h-full object-cover">
                            </div>
                            <div class="ml-3">
                                <h4 class="text-sm font-medium text-gray-800">芒果冰沙</h4>
                                <p class="text-xs text-gray-500">¥28.00 × 2</p>
                            </div>
                        </div>
                        <div class="text-gray-800 font-medium">¥56.00</div>
                    </div>
                </div>

                <!-- 备注信息 -->
                <div class="bg-white rounded-xl shadow-sm overflow-hidden p-4">
                    <div class="flex items-center justify-between">
                        <div class="flex items-center">
                            <svg class="w-5 h-5 text-pink-500 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
                            </svg>
                            <span class="text-gray-800 font-medium">备注</span>
                        </div>
                        <div class="text-gray-600 text-sm">提拉米苏多加可可粉</div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 底部按钮 -->
        <div class="bg-white border-t border-gray-200 p-4 flex space-x-4">
            <a href="orders.html" class="block w-1/2 border border-pink-500 text-pink-500 py-3 rounded-full font-medium text-center">
                查看订单
            </a>
            <a href="menu.html" class="block w-1/2 bg-gradient-to-r from-pink-500 to-purple-500 text-white py-3 rounded-full font-medium text-center shadow-md">
                返回首页
            </a>
        </div>
    </div>
</body>
</html>